<?php
class Image extends IDecorator{
	public function decorator($obj){
		$obj->weibo = preg_replace('/\[img\](.*)\[\/img\]/', 
				"<img src='$1' />", 
				$obj->weibo);
	}
}